<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//session_start();
include_once('../includes/utilidades.php');
$licencia=$_REQUEST['licencia'];
$campo=$_REQUEST['campo'];

$sql = "select id, concat(nombre,' ',apellido1,' ',apellido2) as descripcion from atleta where upper(licencia)=upper('" . $licencia . "')" .
        " or upper(uid)=upper('" . $licencia . "') or upper(uid2)=upper('" . $licencia . "')";
//print $sql;
$r = select2($sql);
//print_r($r);
 print $r[0][$campo];         
?>
